package com.cheer.dto;

import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
@Accessors(chain = true)
public class AccountBackupUpdateDTO {

    @NotBlank(message = "备用账号不能为空")
    @Length(max = 20, message = "备用账号不能超过20个字符")
    private String backupAccount;

    @NotBlank(message = "密码不能为空")
    @Length(max = 20, message = "密码不能超过20个字符")
    private String password;
}
